//
//  OEHomeDataController.h
//  OneEightyNine
//
//  Created by apple on 2019/3/6.
//  Copyright © 2019 stoneobs. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^OEHomeDataNormalHandle)(BOOL success,NSString * errorString,NSDictionary * resp);
NS_ASSUME_NONNULL_BEGIN
/************主页模块数据获取******************/
@interface OEHomeDataController : NSObject
//组获取 首页三个接口
+ (void)sendGetHomeRequest:(void(^)(NSArray * bannerArray,NSArray *hotBusinessArray,NSArray *hotOfferArray))handle;
//获取商家详情
+ (void)sendGetShopDetailRequest:(NSString*)supplier_id handle:(OEHomeDataNormalHandle)handle;
//获取商品分类列表
+ (void)sendCateListRequestHandle:(void(^)(bool success,NSArray * array))handle;
//收藏
+ (void)sendCollectShopWithSupplier_idRequest:(NSString*)supplier_id is_collect:(NSString*)is_collect  handle:(OEHomeDataNormalHandle)handle;

//查询购物车
+ (void)sendFetchShopCarListRequestWithSupplier_id:(NSString*)supplier_id   handle:(void(^)(NSString * cart_number,NSString * goods_price,NSArray * goods ))handle;

//添加至购物车
+ (void)addGoodToCar:(NSString*)goods_id handle:(OEHomeDataNormalHandle)handle;

//减少购物车 商品数量
+ (void)sendReduceGoodToCar:(NSString*)goods_id number:(NSString*)numer handle:(OEHomeDataNormalHandle)handle;

//删出购物车 商品数量
+ (void)sendDeleteShopCarRequestWithRec_id:(NSString*)rec_id  handle:(OEHomeDataNormalHandle)handle;

//添加订单
+ (void)sendCommitOrderRequestWithRec_ids:(NSString*)rec_ids supplier_id:(NSString*)supplier_id handle:(OEHomeDataNormalHandle)handle;
@end

NS_ASSUME_NONNULL_END
